package cn.lizemin.demo.threadLocal;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class MyThreadLocal {
    //这是一个main方法,是程序的入口
    public static void main(String[] args) {
        Thread thread = Thread.currentThread();
        ThreadLocal<String> threadLocal = new ThreadLocal<>();
        threadLocal.set("hello");
        threadLocal.set("hello2");
        String s = threadLocal.get();
        System.out.println(s);


    }

}
